//
//  LoadMoreTableView.h
//  EGOTableViewPullRefreshDemo
//
//  Created by wanyakun on 13-11-6.
//  Copyright (c) 2013年 The9. All rights reserved.
//
/*
 loadmoretable---
 canLoadMore--设置是否停用loadmore
 通过loadMoreView.state设置加载完成等加载状态
 通过loadMoreView设置其背景字体颜色等。
 */

#import <UIKit/UIKit.h>
#import "MessageInterceptor.h"
#import "LoadMoreTableFooterView.h"

@protocol LoadMoreTableViewDelegate;

@interface LoadMoreTableView : UITableView<LoadMoreTableFooterDelegate>
{
    // For intercepting the scrollView delegate messages.
    MessageInterceptor * delegateInterceptor;
    
}

@property (nonatomic,retain)LoadMoreTableFooterView *loadMoreView;

/* Delegate */
@property (nonatomic, assign) id<LoadMoreTableViewDelegate> loadMoreDelegate;

//是否停用loadmore
PROPERTY_ASSIGN BOOL canLoadMore;

@end

@protocol LoadMoreTableViewDelegate <NSObject>

/* After one of the delegate methods is invoked a loading animation is started, to end it use the respective status update property */
- (void)loadMoreTableViewDidTriggerLoadMore:(LoadMoreTableView*)loadMoreTableView;

@end




